//--- OBJECT WRITE BEGIN ---
new GuiChunkedBitmapCtrl(TKDA_mainMenu) {
   canSaveDynamicFields = "1";
   Profile = "GuiDefaultProfile";
   HorizSizing = "relative";
   VertSizing = "relative";
   position = "0 0";
   Extent = "800 600";
   MinExtent = "8 2";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";
   bitmap = "~/client/ui/images/background.png";
   useVariable = "0";
   tile = "0";

   new GuiBitmapButtonCtrl(TKDAMainMenu_newBtn) {
      canSaveDynamicFields = "1";
      Profile = "GuiDefaultProfile";
      HorizSizing = "relative";
      VertSizing = "relative";
      position = "552 8";
      Extent = "220 64";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "setupNewLayout();";
      tooltipprofile = "GuiToolTipProfile";
      ToolTip = "Left click to start a new project";
      hovertime = "1000";
      groupNum = "-1";
      buttonType = "PushButton";
      bitmap = "~/client/ui/images/newBtn";
   };
   new GuiBitmapButtonCtrl(TKDAMainMenu_loadBtn) {
      canSaveDynamicFields = "1";
      Profile = "GuiDefaultProfile";
      HorizSizing = "relative";
      VertSizing = "relative";
      position = "552 76";
      Extent = "220 64";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "loadSavedLayout();";
      tooltipprofile = "GuiToolTipProfile";
      ToolTip = "Left click to load a saved project";
      hovertime = "1000";
      groupNum = "-1";
      buttonType = "PushButton";
      bitmap = "~/client/ui/images/loadBtn";
   };
   new GuiBitmapButtonCtrl(TKDAMainMenu_quitBtn) {
      canSaveDynamicFields = "1";
      Profile = "GuiDefaultProfile";
      HorizSizing = "relative";
      VertSizing = "relative";
      position = "552 144";
      Extent = "220 64";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "confirmQuit();";
      tooltipprofile = "GuiToolTipProfile";
      ToolTip = "Left click to exit this program";
      hovertime = "1000";
      groupNum = "-1";
      buttonType = "PushButton";
      bitmap = "~/client/ui/images/quitBtn";
   };
   new GuiBitmapButtonCtrl(TKDAMainMenu_creditsBtn) {
      canSaveDynamicFields = "1";
      Profile = "GuiDefaultProfile";
      HorizSizing = "relative";
      VertSizing = "relative";
      position = "552 212";
      Extent = "220 64";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      Command = "openCreditsGui();";
      tooltipprofile = "GuiToolTipProfile";
      ToolTip = "Left click to load the credits";
      hovertime = "1000";
      groupNum = "-1";
      buttonType = "PushButton";
      bitmap = "~/client/ui/images/creditsBtn";
   };
   new GuiBitmapCtrl(lower) {
      canSaveDynamicFields = "0";
      Profile = "GuiDefaultProfile";
      HorizSizing = "right";
      VertSizing = "bottom";
      position = "0 287";
      Extent = "800 313";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      hovertime = "1000";
      bitmap = "~/client/ui/images/TDKA_lowerthird.png";
      wrap = "0";
   };
   new GuiBitmapCtrl(Logo) {
      canSaveDynamicFields = "0";
      Profile = "GuiDefaultProfile";
      HorizSizing = "right";
      VertSizing = "bottom";
      position = "76 52";
      Extent = "311 141";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
      hovertime = "1000";
      bitmap = "~/client/ui/images/TDKA_Logo.png";
      wrap = "0";
   };
};
//--- OBJECT WRITE END ---
function TKDA_mainMenu::onWake(%this)
{
   if(!$missionLoading)
      cleanTKDAGroups();
}